﻿using System;
using System.Collections.Generic;

namespace Chengheng.Entity.Commodity.Dictionary;

/// <summary>
/// 商品_字典_分类
/// </summary>
public partial class Classification
{
    public long Id { get; set; }

    /// <summary>
    /// 分类名称
    /// </summary>
    public string Name { get; set; } = null!;

    /// <summary>
    /// 排序号
    /// </summary>
    public int? SortNumber { get; set; }

    public long TenantId { get; set; }

    public long? ParentId { get; set; }

    public virtual ICollection<Commodity> CommodityCommodities { get; set; } = new List<Commodity>();

    public virtual ICollection<Classification> InverseParent { get; set; } = new List<Classification>();

    public virtual Classification? Parent { get; set; }
}
